package com.xiaoyg.lession01.chapter19.endbyviolence;

/**
 * 暴力停止线程　调用stop方法
 */
public class Run {

    public static void main(String[] args) {

        try {
            MyThread thread = new MyThread();
            thread.start();
            Thread.sleep(8000);
            thread.stop();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }

}
